package com.dajiba.demo;

import android.content.Context;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

import androidx.annotation.Nullable;

import com.blankj.utilcode.util.ColorUtils;
import com.blankj.utilcode.util.LogUtils;

public class BaseCustomView extends View {
    public Paint mPaint = new Paint();

    public BaseCustomView(Context context) {
        super(context);
        initPaint();
    }

    public BaseCustomView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initPaint();
    }

    public BaseCustomView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initPaint();
    }

    private void initPaint() {
        mPaint.setColor(ColorUtils.getColor(R.color.colorPrimary));
        mPaint.setAntiAlias(true);
    }
}
